import service from '@/utils/request'
// eslint-disable-next-line no-unused-vars
const { httpPostForm, httpPost, httpGet } = service
//消耗汇总
const request = {
    //根据条件分页查询消耗汇总
    consumptioncollect (params) {
        return httpPost({
            url: '/material/consumptionSummary/listByEntity',
            params
        })
    },
    //新增消耗汇总
    AddConsumptioncollect (params) {
        return httpPost({
            url: '/material/consumptionSummary/create',
            params
        })
    },
    //修改消耗汇总
    EditConsumptioncollect (params) {
        return httpPost({
            url: '/material/consumptionSummary/update',
            params
        })
    },
    //更新消耗汇总明细
    EditConsumptioncollectList (params) {
        return httpPost({
            url: '/material/consumptionSummary/updateList',
            params
        })
    },
    // 冲红单
    redSingle (billId) {
        return httpGet({
            url: '/material/consumptionSummary/initRedBill',
            params: {
                billId
            }
        })
    },

}

export default request